<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TScrollView类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_scroll_view-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TScrollView类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TScrollView 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_scroll_view.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a798692cfa33235f42950d9507ebdf317"><td class="memItemLeft" align="right" valign="top"><a id="a798692cfa33235f42950d9507ebdf317"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TScrollView</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a798692cfa33235f42950d9507ebdf317"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a006bdac2d90dddc54e3e8a533f0bbabc"><td class="memItemLeft" align="right" valign="top"><a id="a006bdac2d90dddc54e3e8a533f0bbabc"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TScrollView</b> (const scroll_view_t *nativeObj)</td></tr>
<tr class="separator:a006bdac2d90dddc54e3e8a533f0bbabc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0630570094b25da273e753950494b96f"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a0630570094b25da273e753950494b96f">SetVirtualW</a> (wh_t w)</td></tr>
<tr class="separator:a0630570094b25da273e753950494b96f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8c63895430a7ef35252c89e8f7db26b"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#ac8c63895430a7ef35252c89e8f7db26b">SetVirtualH</a> (wh_t h)</td></tr>
<tr class="separator:ac8c63895430a7ef35252c89e8f7db26b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade39c3e057e5685c809b470279b8a645"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#ade39c3e057e5685c809b470279b8a645">SetXslidable</a> (bool xslidable)</td></tr>
<tr class="separator:ade39c3e057e5685c809b470279b8a645"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b1ec94e5820822194858384bc185b25"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a0b1ec94e5820822194858384bc185b25">SetYslidable</a> (bool yslidable)</td></tr>
<tr class="separator:a0b1ec94e5820822194858384bc185b25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6aa7c4cfac7168572068c9e1f027978a"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a6aa7c4cfac7168572068c9e1f027978a">SetSnapToPage</a> (bool snap_to_page)</td></tr>
<tr class="separator:a6aa7c4cfac7168572068c9e1f027978a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1de95364a4bba3b57221415187c5a301"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a1de95364a4bba3b57221415187c5a301">SetMoveToPage</a> (bool move_to_page)</td></tr>
<tr class="separator:a1de95364a4bba3b57221415187c5a301"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a1e263020100f06c25ad96434a9f5f6"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a8a1e263020100f06c25ad96434a9f5f6">SetRecursive</a> (bool recursive)</td></tr>
<tr class="separator:a8a1e263020100f06c25ad96434a9f5f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a970f16771d15bd58fd53aaaacc895dfa"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a970f16771d15bd58fd53aaaacc895dfa">SetRecursiveOnly</a> (bool recursive)</td></tr>
<tr class="separator:a970f16771d15bd58fd53aaaacc895dfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fcbd408e0b4b84f575cb87bace176ed"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a7fcbd408e0b4b84f575cb87bace176ed">SetOffset</a> (int32_t xoffset, int32_t yoffset)</td></tr>
<tr class="separator:a7fcbd408e0b4b84f575cb87bace176ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0896da08be4cbc94a459a87a015b6139"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a0896da08be4cbc94a459a87a015b6139">SetSpeedScale</a> (float_t xspeed_scale, float_t yspeed_scale)</td></tr>
<tr class="separator:a0896da08be4cbc94a459a87a015b6139"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ba1ab916f2c912587457cf3b090b067"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a5ba1ab916f2c912587457cf3b090b067">SetSlideLimitRatio</a> (float_t slide_limit_ratio)</td></tr>
<tr class="separator:a5ba1ab916f2c912587457cf3b090b067"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b6aaf84e688f14d720b347e0394aa3e"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a0b6aaf84e688f14d720b347e0394aa3e">ScrollTo</a> (int32_t xoffset_end, int32_t yoffset_end, int32_t duration)</td></tr>
<tr class="separator:a0b6aaf84e688f14d720b347e0394aa3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac76ab9fc4c30206892437492f6444c6d"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#ac76ab9fc4c30206892437492f6444c6d">ScrollDeltaTo</a> (int32_t xoffset_delta, int32_t yoffset_delta, int32_t duration)</td></tr>
<tr class="separator:ac76ab9fc4c30206892437492f6444c6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bbff0d137bd3d75b60df316f78e25b9"><td class="memItemLeft" align="right" valign="top">wh_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a6bbff0d137bd3d75b60df316f78e25b9">GetVirtualW</a> () const</td></tr>
<tr class="separator:a6bbff0d137bd3d75b60df316f78e25b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae3bea6d77f62844e75997403799e9c8"><td class="memItemLeft" align="right" valign="top">wh_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#aae3bea6d77f62844e75997403799e9c8">GetVirtualH</a> () const</td></tr>
<tr class="separator:aae3bea6d77f62844e75997403799e9c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37e126463a58a33f1b161167dd600313"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a37e126463a58a33f1b161167dd600313">GetXoffset</a> () const</td></tr>
<tr class="separator:a37e126463a58a33f1b161167dd600313"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cd6cebcf61e527b930f12f193a0581e"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a2cd6cebcf61e527b930f12f193a0581e">GetYoffset</a> () const</td></tr>
<tr class="separator:a2cd6cebcf61e527b930f12f193a0581e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fb3e8a8282c0db9d894cba605149ed5"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a6fb3e8a8282c0db9d894cba605149ed5">GetXspeedScale</a> () const</td></tr>
<tr class="separator:a6fb3e8a8282c0db9d894cba605149ed5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcdae22f402b0ddddbfdf8f39f9df49e"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#afcdae22f402b0ddddbfdf8f39f9df49e">GetYspeedScale</a> () const</td></tr>
<tr class="separator:afcdae22f402b0ddddbfdf8f39f9df49e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16ed6b0089619a04e9806a5951a527af"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a16ed6b0089619a04e9806a5951a527af">GetXslidable</a> () const</td></tr>
<tr class="separator:a16ed6b0089619a04e9806a5951a527af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab83f16c5688b961d9e249302f05354e9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#ab83f16c5688b961d9e249302f05354e9">GetYslidable</a> () const</td></tr>
<tr class="separator:ab83f16c5688b961d9e249302f05354e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e3fe38c751d427f8761a32f8ed3f225"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a9e3fe38c751d427f8761a32f8ed3f225">GetSnapToPage</a> () const</td></tr>
<tr class="separator:a9e3fe38c751d427f8761a32f8ed3f225"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa355c6c18da44cbea5f7becc8fbc1b12"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#aa355c6c18da44cbea5f7becc8fbc1b12">GetMoveToPage</a> () const</td></tr>
<tr class="separator:aa355c6c18da44cbea5f7becc8fbc1b12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6578d85212a5fb9e71d67126c7c5dc6c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a6578d85212a5fb9e71d67126c7c5dc6c">GetRecursive</a> () const</td></tr>
<tr class="separator:a6578d85212a5fb9e71d67126c7c5dc6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00e7c10bf6af7f939943c809c5d7d3f5"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a00e7c10bf6af7f939943c809c5d7d3f5">GetSlideLimitRatio</a> () const</td></tr>
<tr class="separator:a00e7c10bf6af7f939943c809c5d7d3f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:aa9699f5e026ce08203ce717e7c63d991"><td class="memItemLeft" align="right" valign="top"><a id="aa9699f5e026ce08203ce717e7c63d991"></a>
static <a class="el" href="class_t_scroll_view.html">TScrollView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:aa9699f5e026ce08203ce717e7c63d991"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd7e24fefd1994bbb395f0b94f9c1f9d"><td class="memItemLeft" align="right" valign="top"><a id="abd7e24fefd1994bbb395f0b94f9c1f9d"></a>
static <a class="el" href="class_t_scroll_view.html">TScrollView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:abd7e24fefd1994bbb395f0b94f9c1f9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3db7988d8a281ab26e05bfd78eec990"><td class="memItemLeft" align="right" valign="top"><a id="aa3db7988d8a281ab26e05bfd78eec990"></a>
static <a class="el" href="class_t_scroll_view.html">TScrollView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:aa3db7988d8a281ab26e05bfd78eec990"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53a631aa615d1ecce35540e191914ab6"><td class="memItemLeft" align="right" valign="top"><a id="a53a631aa615d1ecce35540e191914ab6"></a>
static <a class="el" href="class_t_scroll_view.html">TScrollView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a53a631aa615d1ecce35540e191914ab6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bda34f4965d6e3d7fef8bdfec1d692f"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_scroll_view.html#a8bda34f4965d6e3d7fef8bdfec1d692f">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a8bda34f4965d6e3d7fef8bdfec1d692f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>滚动视图。</p>
<p>scroll_view_t是widget\_t的子类控件，widget_t的函数均适用于scroll_view_t控件。</p>
<p>在xml中使用"scroll\_view"标签创建滚动视图控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">list_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;-80&quot;</span> <span class="keyword">item_height</span>=<span class="stringliteral">&quot;60&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">scroll_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">list_item</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;odd&quot;</span> <span class="keyword">children_layout</span>=<span class="stringliteral">&quot;default(rows=1,cols=0)&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">image</span> <span class="keyword">draw_type</span>=<span class="stringliteral">&quot;icon&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">image</span>=<span class="stringliteral">&quot;earth&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">label</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;-30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;1.Hello AWTK !&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">switch</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;r:10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;60&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;20&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">label</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">list_item</span>&gt;</div>
<div class="line">*...</div>
<div class="line">*&lt;/<span class="keywordtype">scroll_view</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">list_view</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>滚动视图一般作为列表视图的子控件使用。 </p>
</blockquote>
<blockquote class="doxtable">
<p>更多用法请参考：<a href="&lt;/blockquote&gt; https://github.com/zlgopen/awtk/blob/master/design/default/ui/list_view_m.xml">list_view_m.xml</a></p>
<p>在c代码中使用函数scroll_view_create创建列表视图控件。如：</p>
<p>可用通过style来设置控件的显示风格，如背景颜色和边框颜色等(一般情况不需要)。 </p>
</blockquote>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a8bda34f4965d6e3d7fef8bdfec1d692f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bda34f4965d6e3d7fef8bdfec1d692f">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TScrollView::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建scroll_view对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="aa355c6c18da44cbea5f7becc8fbc1b12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa355c6c18da44cbea5f7becc8fbc1b12">&#9670;&nbsp;</a></span>GetMoveToPage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TScrollView::GetMoveToPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否每次翻一页（当 move_to_page 为ture 的时候才有效果，主要用于区分一次翻一页还是一次翻多页）。 </p>

</div>
</div>
<a id="a6578d85212a5fb9e71d67126c7c5dc6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6578d85212a5fb9e71d67126c7c5dc6c">&#9670;&nbsp;</a></span>GetRecursive()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TScrollView::GetRecursive </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否递归查找全部子控件。 </p>

</div>
</div>
<a id="a00e7c10bf6af7f939943c809c5d7d3f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00e7c10bf6af7f939943c809c5d7d3f5">&#9670;&nbsp;</a></span>GetSlideLimitRatio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TScrollView::GetSlideLimitRatio </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>滑动到极限时可继续滑动区域的占比。 </p>

</div>
</div>
<a id="a9e3fe38c751d427f8761a32f8ed3f225"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e3fe38c751d427f8761a32f8ed3f225">&#9670;&nbsp;</a></span>GetSnapToPage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TScrollView::GetSnapToPage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>滚动时offset是否按页面对齐。 </p>

</div>
</div>
<a id="aae3bea6d77f62844e75997403799e9c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae3bea6d77f62844e75997403799e9c8">&#9670;&nbsp;</a></span>GetVirtualH()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wh_t TScrollView::GetVirtualH </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>虚拟高度。 </p>

</div>
</div>
<a id="a6bbff0d137bd3d75b60df316f78e25b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6bbff0d137bd3d75b60df316f78e25b9">&#9670;&nbsp;</a></span>GetVirtualW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wh_t TScrollView::GetVirtualW </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>虚拟宽度。 </p>

</div>
</div>
<a id="a37e126463a58a33f1b161167dd600313"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37e126463a58a33f1b161167dd600313">&#9670;&nbsp;</a></span>GetXoffset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TScrollView::GetXoffset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>x偏移量。 </p>

</div>
</div>
<a id="a16ed6b0089619a04e9806a5951a527af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16ed6b0089619a04e9806a5951a527af">&#9670;&nbsp;</a></span>GetXslidable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TScrollView::GetXslidable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否允许x方向滑动。 </p>

</div>
</div>
<a id="a6fb3e8a8282c0db9d894cba605149ed5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6fb3e8a8282c0db9d894cba605149ed5">&#9670;&nbsp;</a></span>GetXspeedScale()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TScrollView::GetXspeedScale </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>x偏移速度比例。 </p>

</div>
</div>
<a id="a2cd6cebcf61e527b930f12f193a0581e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cd6cebcf61e527b930f12f193a0581e">&#9670;&nbsp;</a></span>GetYoffset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TScrollView::GetYoffset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>y偏移量。 </p>

</div>
</div>
<a id="ab83f16c5688b961d9e249302f05354e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab83f16c5688b961d9e249302f05354e9">&#9670;&nbsp;</a></span>GetYslidable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TScrollView::GetYslidable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否允许y方向滑动。 </p>

</div>
</div>
<a id="afcdae22f402b0ddddbfdf8f39f9df49e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcdae22f402b0ddddbfdf8f39f9df49e">&#9670;&nbsp;</a></span>GetYspeedScale()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TScrollView::GetYspeedScale </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>y偏移速度比例。 </p>

</div>
</div>
<a id="ac76ab9fc4c30206892437492f6444c6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac76ab9fc4c30206892437492f6444c6d">&#9670;&nbsp;</a></span>ScrollDeltaTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::ScrollDeltaTo </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>xoffset_delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>yoffset_delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>duration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>滚动到指定的偏移量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset_delta</td><td>x偏移量。 </td></tr>
    <tr><td class="paramname">yoffset_delta</td><td>y偏移量。 </td></tr>
    <tr><td class="paramname">duration</td><td>时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0b6aaf84e688f14d720b347e0394aa3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b6aaf84e688f14d720b347e0394aa3e">&#9670;&nbsp;</a></span>ScrollTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::ScrollTo </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>xoffset_end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>yoffset_end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>duration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>滚动到指定的偏移量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset_end</td><td>x偏移量。 </td></tr>
    <tr><td class="paramname">yoffset_end</td><td>y偏移量。 </td></tr>
    <tr><td class="paramname">duration</td><td>时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a1de95364a4bba3b57221415187c5a301"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1de95364a4bba3b57221415187c5a301">&#9670;&nbsp;</a></span>SetMoveToPage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetMoveToPage </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>move_to_page</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置滚动时是否每次翻一页 备注：当 snap_to_page 为ture 的时候才有效果，主要用于区分一次翻一页还是一次翻多页。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">move_to_page</td><td>是否每次翻一页。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7fcbd408e0b4b84f575cb87bace176ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fcbd408e0b4b84f575cb87bace176ed">&#9670;&nbsp;</a></span>SetOffset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetOffset </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>xoffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>yoffset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置偏移量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset</td><td>x偏移量。 </td></tr>
    <tr><td class="paramname">yoffset</td><td>y偏移量。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8a1e263020100f06c25ad96434a9f5f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a1e263020100f06c25ad96434a9f5f6">&#9670;&nbsp;</a></span>SetRecursive()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetRecursive </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>recursive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置是否递归查找全部子控件。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">recursive</td><td>是否递归查找全部子控件。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a970f16771d15bd58fd53aaaacc895dfa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a970f16771d15bd58fd53aaaacc895dfa">&#9670;&nbsp;</a></span>SetRecursiveOnly()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetRecursiveOnly </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>recursive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置是否递归查找全部子控件。(不触发repaint和relayout)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">recursive</td><td>是否递归查找全部子控件。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5ba1ab916f2c912587457cf3b090b067"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ba1ab916f2c912587457cf3b090b067">&#9670;&nbsp;</a></span>SetSlideLimitRatio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetSlideLimitRatio </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>slide_limit_ratio</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置滑动到极限时可继续滑动区域的占比。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">slide_limit_ratio</td><td>滑动到极限时可继续滑动区域的占比。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a6aa7c4cfac7168572068c9e1f027978a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6aa7c4cfac7168572068c9e1f027978a">&#9670;&nbsp;</a></span>SetSnapToPage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetSnapToPage </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>snap_to_page</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置滚动时offset是否按页面对齐。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">snap_to_page</td><td>是否按页面对齐。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0896da08be4cbc94a459a87a015b6139"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0896da08be4cbc94a459a87a015b6139">&#9670;&nbsp;</a></span>SetSpeedScale()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetSpeedScale </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>xspeed_scale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>yspeed_scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置偏移速度比例。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xspeed_scale</td><td>x偏移速度比例。 </td></tr>
    <tr><td class="paramname">yspeed_scale</td><td>y偏移速度比例。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac8c63895430a7ef35252c89e8f7db26b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8c63895430a7ef35252c89e8f7db26b">&#9670;&nbsp;</a></span>SetVirtualH()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetVirtualH </td>
          <td>(</td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置虚拟高度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">h</td><td>虚拟高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0630570094b25da273e753950494b96f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0630570094b25da273e753950494b96f">&#9670;&nbsp;</a></span>SetVirtualW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetVirtualW </td>
          <td>(</td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置虚拟宽度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>虚拟宽度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ade39c3e057e5685c809b470279b8a645"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade39c3e057e5685c809b470279b8a645">&#9670;&nbsp;</a></span>SetXslidable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetXslidable </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>xslidable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置是否允许x方向滑动。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xslidable</td><td>是否允许滑动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0b1ec94e5820822194858384bc185b25"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b1ec94e5820822194858384bc185b25">&#9670;&nbsp;</a></span>SetYslidable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TScrollView::SetYslidable </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>yslidable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置是否允许y方向滑动。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">yslidable</td><td>是否允许滑动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
